<template>
  <div class="Myself-card-main">
    <el-card shadow="always" class="card-main">
      <transition name="myself" appear>
        <router-view></router-view>
      </transition>
    </el-card>
  </div>
</template>

<script>
  export default {

  }

</script>

<style lang="less">
  //个人信息主体区域
  .Myself-card-main {
    height: 100%;

    //卡片组件主体区域
    .card-main {
      height: 100%;
      font-size: 20px;
      text-align: center;
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

      .el-card__body {
        padding-top: 0;
      }
    }

    .myself-enter {
      transform: translateX(600px);
    }

    .myself-leave-to {
      transform: translateX(-800px);
    }

    .myself-enter-active {
      transition: all .3s;
    }

    .myself-leave-active {
      position: absolute;
      transition: all .3s;
    }
  }

</style>
